-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEV: Add support for glimmer topic list #60
Conversation
a7f26fd
to
a66b7bd
Compare
This makes the theme component compatible with core's glimmer topic list, while maintaining compatibility with the raw-hbs topic list. Some parts of the logic (e.g. the masonry layout system, and the topic-list-before-link outlet) are reimplemented in a way which works in both old and new topic-lists. Other parts are re-implemented separately for the new topic list. For those parts, the legacy versions are isolated in the `topic-thumbnails-init-legacy.js` initializer for future removal.
a66b7bd
to
705c858
Compare
|
||
const siteSettings = api.container.lookup("service:site-settings"); | ||
if (settings.docs_thumbnail_mode !== "none" && siteSettings.docs_enabled) { | ||
api.modifyClass("component:docs-topic-list", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to keep it as is or can we update it to the native class syntax?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't currently have any way to control classNameBindings via the native class syntax, so will leave it for now 😬
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This makes the theme component compatible with core's glimmer topic list, while maintaining compatibility with the raw-hbs topic list.
Some parts of the logic (e.g. the masonry layout system, and the topic-list-before-link outlet) are reimplemented in a way which works in both old and new topic-lists.
Other parts are re-implemented separately for the new topic list. For those parts, the legacy versions are isolated in the
topic-thumbnails-init-legacy.js
initializer for future removal.Depends on discourse/discourse#30105